package com.atguigu.springcloud.feign;

import com.atguigu.springcloud.api.Result;
import org.springframework.stereotype.Component;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/17 16:12 周四
 * @description :
 */
@Component
public class PaymentHystrixClientImpl implements IPaymentHystrixClient {

    @Override
    public Result<String> paymentInfo(Integer id) {
        return Result.fail("-----PaymentFallbackService fall back-paymentInfo_OK , (┬＿┬)");
    }

    @Override
    public Result<String> paymentInfoTimeout(Integer id) {
        return Result.fail("-----PaymentFallbackService fall back-paymentInfo_TimeOut , (┬＿┬)");
    }
}
